
<div class="row-fluid">
	
	<div class="span6">
		
		<section class="block">
			
			<br /><br />
			
			<h2 class="block-title">Register New Account</h2>
			
			<div class="block-content">
				
				
				<div id="register_form">
					<?php
					if ( empty($model) ) $model = new RegisterForm ();

					$form = $this->beginWidget('CActiveForm', array(
						'id' => 'register-form',
						'enableClientValidation' => false,
						'clientOptions' => array(
							'validateOnSubmit' => true,
						),
						'htmlOptions' => array(
							'class' => 'cm-ajax'
						),
					)); ?>
					<input type="hidden" name="result_ids" value="register_form" />

					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'name'); ?>
						<?php echo $form->textField($model, 'name', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('name') )); ?>
						<?php echo $form->error($model, 'name'); ?>
					</div>
					
					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'username'); ?>
						<?php echo $form->textField($model, 'username', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('username'), 'autocomplete' => 'off' )); ?>
						<?php echo $form->error($model, 'username'); ?>
					</div>

					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'password1'); ?>
						<?php echo $form->passwordField($model, 'password1', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('password1'), 'autocomplete' => 'off' )); ?>
						<?php echo $form->error($model, 'password1'); ?>
					</div>

					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'password2'); ?>
						<?php echo $form->passwordField($model,'password2', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('password2') )); ?>
						<?php echo $form->error($model, 'password2'); ?>
					</div>
					
					<div class="form-field">
						<label><?php echo $form->checkBox($model, 'accept_terms') ?> I accepted with the EULA</label>
						<?php echo $form->error($model, 'accept_terms'); ?>
					</div>

					<div class="form-field row buttons-container nowrap right">
						<?php echo CHtml::submitButton(t('Create Account'), array('class' => 'button2')); ?>
					</div>

					<?php $this->endWidget(); ?>
				
				<!--register_form--></div>
			</div>
			
		</section>
		
	</div>
	
</div>

<br /><br /><br /><br />